/**
** Created by Kstar on 2022/1/12.
**/

//

#ifndef HELLOWORLD_PLANT_H
#define HELLOWORLD_PLANT_H


#include "Creature.h"

#define debug(a) cout<<(a)<<endl;
#define debug2(a, b) cout<<(a)<<","<<(b)<<endl;
#define debug3(a, b, c) cout<<(a)<<","<<(b)<<","<<(c)<<endl;


class Plant :virtual public Creature{
private:
    int growth;//成长值
    string color;//颜色
    string name;//植物的种类/名称
public:
    int getGrowth();
    void setGrowth(int pgrowth);
    void addGrowth(int nutrition);
    string getColor();
    void setColor(string pcolour);
    string geName();
    void setName(string pname);
    Plant(int cx,int cy,int cTime,int pgrowth,string pname,string pcolor);//随机生成在主函数实现，主函数实现随机生成字符串数组和整型数组再赋值到形参中
    Plant();
};


#endif //HELLOWORLD_PLANT_H
